<template>
  <div>
    <file-list :biz_id="biz_id" type="model" v-if="biz_id && toLoad" />
  </div>
</template>

<script>

export default {
  data () {
    return {
      biz_id: '',
      toLoad: true
    };
  },
  props: ['version'],
  watch: {
    version(val) {
      console.log('biz_id', val)
      this.biz_id = val.id
      this.toLoad = false
      setTimeout(() => {
        this.toLoad = true
      })
    }
  },
  mounted () {
    this.biz_id = this.version.id
  },
  destroyed () {

  },
  methods: {

  }
}
</script>
<style lang="less" scoped>

</style>
